<include file="__THEME__/header" />
<link href="../Public/css/blog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Public/js/blog.js">
</script>
<div class="contents lbg B">
    <!-- 左边信息 begin -->
    <include file="../Public/home_left" />
    <div class="contents_min W815">
      <div class="blog_inde_cont W780">
        <h3 class="tit_h3">
          {:L('blog_category_admin')}
        </h3>
        <ul class="LogList">
          <li style="margin:5px 0;">
            <div style="width: 40%;" class="L">
              <select id="sys_cate" style="border:1px solid #ddd; padding:4px 5px; fotn-size:12px; text-align:left;">
                <volist name="cate" id="vo">
                  <option value="{$vo.id}">{$vo.name}</option>
                </volist>
              </select>
              <input type="text" id="insertCategory" class="in_put" name=""/>
              <input type="submit" value="{:L('blog_add_category')}" class="btn_sea ml5" onclick="addCategory( $( '#insertCategory' ).val() )" name="button"/>
            </div>
          </li>
          <li style="margin: 0px;" class="cl06 lineB_D_D">
            <div style="width: 40%;" class="L">
              {:L('blog_category_name')}
              <span style="padding-left:140px;">
                {:L('blog_belong_to_category')}
              </span>
            </div>
            <div style="width: 50%;" class="L">
              {:L('blog_blog_count')}
            </div>
            <div style="width: 10%;" class="L">
              {:L('blog_category_opt')}
            </div>
          </li>
           <li class="lineB_D_D" style="margin:0px; display:none" id ="cate">
                <div class="L" style="width: 40%;">
                  <span class="L" style="width: 50%;">
                    <input name="name[{$vo['id']}]" type="text" class="in_put" value="{$vo['name']}"/>
                  </span>
                  <select class="sys_cate" style="border:1px solid #ddd; padding:4px 5px; fotn-size:12px; text-align:left;">
                    <volist name="cate" id="so">
                      <option  value="{$so.id}">{$so.name}
                      </option>
                    </volist>
                  </select>
                </div>
                <div id="c{$vo['id']}" class="L" style="width: 50%;">
                </div>
              </li>
          <form action="__URL__&act=editCategory" method="post">
            <volist name="userCate" id="vo">
              <li class="lineB_D_D" style="margin:0px;" id ="cate{$vo['id']}">
                <div class="L" style="width: 40%;">
                  <span class="L" style="width: 50%;">
                    <input name="name[{$vo['id']}]" type="text" class="in_put" value="{$vo['name']}"/>
                  </span>
                  <select name="cate[{$vo['id']}]" style="border:1px solid #ddd; padding:4px 5px; fotn-size:12px; text-align:left;">
                    <volist name="cate" id="so">
                      <option 
                      <php>
                        if($vo['pid'] == $so['id']) echo "selected"
                      </php>
                       value="{$so.id}">{$so.name}
                      </option>
                    </volist>
                  </select>
                </div>
                <div id="c{$vo['id']}" class="L" style="width: 50%;">
                  <php>
                    echo $vo['count']?$vo['count']:0;
                  </php>
                </div>
                <div class="L" style="width: 10%;">
                  <a href="javascript:deleteCategory( {$vo['id']})">[ {:L('blog_category_delete')} ]</a>
                </div>
              </li>
            </volist>
            <li style="mt20">
              <div class="L pt5" style="width: 40%;">
                <input type="submit" class="btn_sea"  id="button2" value="{:L('blog_save_edit_category')}" />
              </div>
              <div class="left" style="width: 50%;">
              </div>
              <div class="left" style="width: 10%;">
              </div>
            </li>
          </form>
        </ul>
      </div>
    </div>
    <div class="C">
    </div>
  </div>
  <!-- 中间信息 begin-->
  <div class="C">
  </div>
  </div>
  <include file="__THEME__/footer" /> 